package com.ziroom.zrapl.services.demo.service;

import com.ziroom.zrapl.services.demo.api.inner.DemoService;
import com.ziroom.zrapl.services.demo.dao.mapper.SysCityDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Created by cuiyuhui on 2017/4/19.
 */
@Component("demoServiceImpl")
public class DemoServiceImpl {

    @Resource
    private SysCityDao sysCityDao;

    public String sayHello(String name) {
        int count = sysCityDao.deleteByPrimaryKey(1);
        System.out.printf("Hello " + name + "," + 1);
        return "HELLO " + name;
    }
}
